<template>
  <div class="dashboard">
    <el-card class="welcome-card">
      <template #header>
        <div class="card-header">
          <span>欢迎使用工作流平台</span>
        </div>
      </template>
      <div class="card-content">
        <el-row :gutter="20">
          <el-col :span="8">
            <el-statistic title="待办任务" :value="128">
              <template #suffix>
                <span>个</span>
              </template>
            </el-statistic>
          </el-col>
          <el-col :span="8">
            <el-statistic title="已办任务" :value="526">
              <template #suffix>
                <span>个</span>
              </template>
            </el-statistic>
          </el-col>
          <el-col :span="8">
            <el-statistic title="流程实例" :value="289">
              <template #suffix>
                <span>个</span>
              </template>
            </el-statistic>
          </el-col>
        </el-row>
      </div>
    </el-card>
  </div>
</template>

<style scoped>
.dashboard {
  padding: 20px;
}

.welcome-card {
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-content {
  padding: 20px 0;
}
</style>
